<?php
$title = "Login";
$this->headtitle($title);

?>
<h1><?php echo $this->escapehtml($title);?></h1><a href="<?php echo $this->url('user', array('action' => 'register'));?>">Register</a>
<?php 
$form = $this->form;
$form->setAttribute('action', $this->url('user', array('action' => 'login')));
$form->prepare();

echo $this->form()->openTag($form);
echo $this->formcollection($form);
echo $this->form()->closeTag();
?>